import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => ({
    user: {},
    systemUserMessage: [],
  }),
  getters: {
    obtainUserSystemMessage: (state) => {
      return state.systemUserMessage;
    },

  },
  actions: {
    setSystemMessage(data: any) {
      this.systemUserMessage.push(data as never);
    }
  }
})
